package com.qfjy.wangyigui;

/**
 * @Author: WYG
 * @Date: 2022/9/13 $ {TIME}
 * @Version 1.0
 */
public class AirConditionerCommand extends Command{
    private AirConditioner airConditioner;


    public AirConditionerCommand(AirConditioner airConditioner) {
        this.airConditioner = airConditioner;
    }

    @Override
    public void open() {
        airConditioner.on();
    }

    @Override
    public void close() {
        airConditioner.off();
    }
}
